ext_inc=../opencv/include ../
ext_lib=cxcore highgui 
ext_libpath=../opencv/lib
TARGET= vaslexer.cpp vasparser.cpp testvas.exe
vacgSRC=  vaslexer.cpp vasparser.cpp parserdriver.cpp testvas.cpp vacg.cpp ../global.cpp ../detect.cpp ../filterKernel.cpp ../transforKernel.cpp
clean_obj=vaslexer.cpp vasparser.cpp vasparser.h
-include ../makefile.inc
vacgOBJ=$(call getobjs, $(vacgSRC))
%.cv.avi:%.avi
	mencoder $<  -ovc raw -vf format=i420 -o $@ 
testvas.exe:${vacgOBJ}
	${LINK++}
vaslexer.cpp:vascript.l	
	flex++ -o $@ $^
vasparser.cpp:vascript.y	
	bison -d  -o $@ $<

#tok=$(shell gcc -E token.ly.h | tail -n 1);
vascript.y:token.def
	cp vascript.y vascript.cppld
	sed -e "s/^%token.*$$/$(shell gcc -E token.ly.h | tail -n 1)/"  vascript.cppld > vascript.y

